-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENH] Generate glossary page from schema #923
Conversation
Alternatively, I could organize them by type first, instead of including the type after the term, in parentheses. Not sure which would be preferable. EDIT: Also, in a perfect world, there would be some way to access the relevant place within the associated YAML file, like "source" links in Sphinx-generated documentation. |
Had a quick look and am generally in favor of this, as it might help users in general. Does that make the entities appendix page rerundant though? |
A way to dynamically sort / filter them by type or whatever other criterion would be the best but not sure how feasible it is in MkDocs and would have to be nuked for the PDF rendering. I would start with alphabetical and progressively improve later. |
I don't think this makes the "entities" appendix redundant - these are essentially different pieces of information, aren't they?
agreed!
@tsalo could you please rebase this PR on Thanks! |
@Remi-Gau that's definitely in the wishlist, along with links back to sections of the specification that use each term.
Sounds good. I'll keep it as-is then.
@sappelhoff done! |
Well let's just say that the entities page is a subset of the glossary. See the example of the hemisphere entity below. I don' think it is necessarily an issue though. |
Eventually, it would be great to have the glossary replace the Entities appendix. Imagine hovering your mouse over a term in the specification and the glossary entry pops up! However, at the moment, I think the glossary is just too big and difficult to navigate for users to rely on it for something as common as checking entity definitions. EDIT: There are some plugins that should make hover tooltips possible, like md-tooltips, md-tooltips-link, and mkdocs-tooltips. |
@sappelhoff would you rather I wait on @effigies's review or can we merge now that there are two approvals? |
Let's merge :-) 🚀 Thanks @tsalo |
Closes #900.
This is just a first draft. It does not include links from the glossary back to the specification text, or even collect info about where the terms are used in the text.
I've included anchors for each of the object definitions, so it should be fairly easy to link to the appropriate place in the glossary from things like tables in the text.
Changes proposed: